package com.jihox.abookpro;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

import com.jihox.abookpro.R;
import com.jihox.abookpro.domain.Order;

public class PayFailedActivity extends BaseActivity {
	
	public static final String TAG = "alipay-sdk";
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.pay_fail);
		
		Intent intent = this.getIntent();
		Bundle bundle = intent.getExtras();
		Order orderInfo = (Order) bundle.getSerializable("orderInfo");

		TextView tvOrderId=  (TextView) findViewById(R.id.order_number);
		tvOrderId.setText(orderInfo.getOrderId());
         
        Button payButton = (Button)findViewById(R.id.btnRePay); 
        payButton.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View arg0) {
				finish();
			}
		});
         
        Button returnButton = (Button)findViewById(R.id.btnReturn); 
        returnButton.setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View arg0) {
				finish();
			}
			
		});
	}
	
}

